//
//  DateTimeUtil.m
//  断点下载PDF
//
//  Created by 徐凯 on 16/5/4.
//  Copyright © 2016年 cqjtu. All rights reserved.
//

#import "DateTimeUtil.h"

@implementation DateTimeUtil
///dateTimeFormat 格式可以为"YYYY MM dd HH mm ss"
+(NSString*)currentDataTime:(NSString*)dateTimeFormat{
    NSDate* currentDate = [NSDate date];
    NSDateFormatter* dateFormatter = [[NSDateFormatter alloc]init];
    [dateFormatter setDateFormat:dateTimeFormat];
    NSString* dateString = [dateFormatter stringFromDate:currentDate];
    return dateString;
}
@end
